import { useState } from "react";
import "./index.less";

function RevockItem({data}: any) {
  const {item, index} = data;
  const {source} = item;

  return (
    <div className="revoke-item">
      <span className="revoke-item-content text-style">
        {
          source === 'reply' ? '您撤回了一条信息' : `${item.nickName} 撤回了一条信息`
        }
      </span>
    </div>
  );
}

export default RevockItem;
